<?php
define('LMO', true);
define('BS', '/');
define('ROOT', dirname(__FILE__).BS.'..');
define('APP', ROOT.BS.'app');
define('LIB', APP.BS.'library');
define('CONFIG', APP.BS.'config');
include (CONFIG.BS.'/init.php');

if(count($argv) != 2) exit;

$ip = $argv[1];

$account = LAccount::getInstance();
if(!$account->checkExist($ip)) {
    exit("Account doesn\'t exist !");
}

$monitor = LMonitor::getInstance();
$monitor->monitorService($ip);
?>